import type { RouteRecordRaw } from 'vue-router'
import HomeView from '@/views/HomeView.vue'
import AboutView from '@/views/AboutView.vue'

import StudentAdminView from '@/views/student/StudentAdminView.vue'
import RandomSelect from '@/views/student/RandomSelect.vue'
import PunishSelectView from '@/views/student/PunishSelectView.vue'
import AssignAssignments from '@/views/student/AssignAssignments.vue'
import PunishAdminView from '@/views/punish/PunishAdminView.vue'

export const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    component: HomeView,
    name: '首页',
    meta: {
      icon: 'HomeFilled'
    }
  },
  {
    name: '学生中心',
    path: '/student',
    meta: {
      icon: 'Avatar',
      isAuth: true
    },
    component: StudentAdminView
  },

  {
    path: '/randomSelect',
    name: '随机点名',
    component: RandomSelect,
    meta: {
      showInMenu: true
    }
  }
  , {
    path: '/punishSelect',
    name: '惩罚抽取',
    component: PunishSelectView,
    meta: {
      showInMenu: true
    }
  }
  , {
    path: '/punish',
    name: '惩罚中心',
    component: PunishAdminView,
    meta: {
      icon: 'Failed'
    }
  }
  , {
    path: '/assign',
    name: '布置作业',
    component: AssignAssignments,
    meta: {
      showInMenu: true
    }
  },{
    path: '/about',
    component: AboutView,
    name: '关于',
    meta: {
      isAuth: true,
      icon: 'MoreFilled'
    }
  },
]
